<?php
class support_W extends CWidget
{
	public $title = 'Hỗ trợ trực tuyến';
	public function init()
	{
		parent::init();
	}
	public function run()
	{
                $criteria = new CDbCriteria;
		$criteria->compare('status', 1);
		$data = Online::model()->findAll($criteria);	
                $this->render('default', array(
                                'data' =>$data,					
                                'title'=>$this->title,
                        ));
	}
}